package com.link2room.aeriabots.constant;

import java.util.Date;

/**
 * Created by LN on 2016/9/1.
 */
public class WXConstant {
    public static class WxCertificate{
        public final static String COMPONENT_ACCESS_TOKEN = "wx_component_access_token";
        public final static String COMPONENT_TOKEN = "wx_component_token";
        public final static String COMPONENT_APPID = "wx_component_appid";
        public final static String COMPONENT_APPID_SECRET = "wx_component_appsecret";
        public final static String COMPONENT_ENCODINGAESKEY = "wx_component_encodingAesKey";
        /**
         * 支付回调
         */
        public final static String WX_PAY_NOTIFY_URL = "wx_pay_notify_url";
        /**
         * 注册链接
         */
        public final static String WX_REGISTER_URL = "wx_register_url";

        /**
         * 会员升级页面
         */
        public static final String MEMBER_LEVEL_UP_URL = "member_level_up_url";
        // /------------------------------------------/
        /**
         * 公众号授权回调
         */
        public final static String COMPONENT_REIDRECT_URL = "authorization_redirect";

    }

    public static class Component{

        private static String COMPONENT_VERIFY_TICKET = "";
        private static Date DATE;
        public static String getVerifyTicket(){
            return COMPONENT_VERIFY_TICKET;
        }
        public static Date getDate(){
            return DATE;
        }
        public static void setVerifyTicket(String verifyTicket){
            DATE = new Date();
            COMPONENT_VERIFY_TICKET = verifyTicket;
        }
    }

    public static class WX_PAY{
        public static class WX_TRADE_TYPE {
            //预下单
            public final static String JSPAPI  = "JSAPI";
        }
    }

    /**
     * 微信二维码
     */
    public static class WX_QRCODE{
        /**
         * 类型
         */
        public static class TYPE {
            /**
             * 分销员
             */
            public final static String SALESMAN  = "Salesman";
            /**
             * 图文回复
             */
            public final static String REPLY  = "Reply";
        }
    }
}
